//
//  ShopCollectionViewCell.m
//  WaterPull
//
//  Created by user on 16/4/22.
//  Copyright © 2016年 user. All rights reserved.
//

#import "ShopCollectionViewCell.h"
#import "Shop.h"
#import "UIImageView+WebCache.h"
@interface ShopCollectionViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *shopImageView;
@property (weak, nonatomic) IBOutlet UILabel *textLabel;
@end;
@implementation ShopCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.contentView.backgroundColor = [UIColor clearColor];
  
    // Initialization code
}
- (void)setShop:(Shop *)shop
{
    _shop = shop;
    
    // 1.图片
    [self.shopImageView sd_setImageWithURL:[NSURL URLWithString:shop.img] placeholderImage:[UIImage imageNamed:@"loading"]];
    
    // 2.价格
    self.textLabel.text = shop.price;
}
@end
